package com.jacobson.huobi.mvp.model

import com.alibaba.fastjson.JSONObject
import com.jacobson.core.di.annotation.ActivityScope
import com.jacobson.core.framework.repository.IRepositoryManager
import com.jacobson.core.mvp.BaseModel
import com.jacobson.huobi.api.InviteFriendApi
import com.jacobson.huobi.entities.response.CommonResponse
import com.jacobson.huobi.mvp.contract.InviteFriendsContract
import com.jacobson.huobi.mvp.contract.KycAuthContract
import io.reactivex.Observable
import javax.inject.Inject

@ActivityScope
class InviteFriendsModel @Inject constructor(
    repositoryManager: IRepositoryManager
) : BaseModel(repositoryManager), InviteFriendsContract.Model {

    private val inviteFriendApi =
        repositoryManager.obtainRetrofitService(InviteFriendApi::class.java)

    override fun loadSharedInfo(): Observable<CommonResponse<JSONObject>> {
        return inviteFriendApi.loadSharedInfo()
    }
}